package com.liliudong.pinkyponk.biz.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.liliudong.pinkyponk.biz.base.BaseEntity;
import com.liliudong.pinkyponk.biz.sys.enums.SysUserGander;
import com.liliudong.pinkyponk.biz.sys.enums.SysUserStatus;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

/**
 * 系统用户
 *
 * @author liliudong
 * @TableName sys_user
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SysUser extends BaseEntity implements Serializable {

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 手机号
     */
    private String mobile;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * 昵称
     */
    private String nickName;

    /**
     * 性别
     */
    private SysUserGander gander;

    /**
     * 头像地址
     */
    private String avatar;

    /**
     * 部门编码
     */
    private String orgNo;

    /**
     * 账号过期时间
     */
    private Date expireTime;

    /**
     * 账号状态
     */
    private SysUserStatus status;
}